<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<%--<!– IE8 mode –>--%>

<title>中国刊网-个人中心</title>

<link href="css/space.css" rel="stylesheet" type="text/css" />
<link href="css/backtage.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
	function loadUserMsg() {
		$.get ("json/userExt_findById?",
					 function (data) {
						$("#headPic").attr("src", data.headPic);
					 }
			    );	
	}
	function loadNewMsg() {
		$.get("json/MsgFindNew",
			  function(data) {
			  	if(data.yes_1 ==0) {
			  		$("#new_1").css("display", "block");
			  	}
			  }
		);
	}

	window.onload=loadUserMsg();
	window.onload= loadNewMsg();
	
</script>
<script type="text/javascript" language="javascript">
		//收藏本站
		function AddFavorite(sURL, sTitle) {
		
			sURL = encodeURI("http://www.baidu.com"); 
			try{ 
			window.external.addFavorite(sURL, sTitle); 
			}catch(e) { 
			
			try{ 
			window.sidebar.addPanel(sTitle, sURL, ""); 
			}catch (e) { 
			alert("加入收藏失败，请使用Ctrl+D进行添加,或手动在浏览器里进行设置."); 
			} 
			
			}
		
		}
		
		//设为首页
		function SetHome(url){
		
			if (document.all) {
			document.body.style.behavior='url(#default#homepage)';
			document.body.setHomePage("http://www.baidu.com");
			}else{
			alert("您好,您的浏览器不支持自动设置页面为首页功能,请您手动在浏览器里设置该页面为首页!");
			}
		
		}
		function search_1(){
			alert("1");
			document.searchform.submit();
		}
</script>
<script type="text/javascript" language="Javascript">
	function dyniframesize(iframename) {
		var getFFVersion = navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];
		//extra height in px to add to iframe in FireFox 1.0+ browsers
		var FFextraHeight = getFFVersion >= 0.1 ? 16 : 0;
		
		var pTar = null;
		if (document.getElementById) {
			pTar = document.getElementById(iframename);
		} else {
			eval('pTar = ' + iframename + ';');
		}
		
		if (pTar && !window.opera) {
			//begin resizing iframe
			pTar.style.display = "block";

			if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight) {
				//ns6 syntax
				pTar.height = pTar.contentDocument.body.offsetHeight + FFextraHeight;
			} else if (pTar.Document && pTar.Document.body.scrollHeight) {
				//ie5+ syntax
				pTar.height = pTar.Document.body.scrollHeight;
			}
		}
		
		if(pTar.height < 860) {
			pTar.height = 860;
		}
	}
</script>
<style>
.all {
	position: relative;
	width:680px;
	height: auto;
}
</style>
</head>

<body>
	<div class="fla">
		<div class="flag">
			<div class="flag_1">
				<a href="front/index">欢迎进入中国刊网</a>
			</div>
			<div class="flag_2">
				<a href="space/space.jsp">个人中心</a> <a href="html/userLogin.jsp">登录</a>
				<a href="html/userRegister.jsp">注册</a>| <a
					onClick="SetHome(window.location)" href="javascript:void(0)">设为首页</a>
				<a onClick="AddFavorite(window.location,document.title)"
					href="javascript:void(0)">加入收藏</a>
			</div>
		</div>
	</div>
	<div class="all">
		<div class="clear"></div>
		<div class="top-a">
			<div class="top-left1">
				<a href="front/index"><img src="images/Loga-a.gif"> </a>
			</div>
			
			<div class="top-right1">
				<ul>
					<li><a href="user/detailExt" target="select">个人资料</a>
					</li>
					<li><a href="front/msg_get_list" target="select">短消息</a><b
						id="new_1" style="display:none"></b>
					</li>
					<li><a href="front/sysmsg_findByStatus?status=1"
						target="select">通知</a>
					</li>
					<li><a href="subscribeB/findSUJByuserId" target="select">订阅</a>
					</li>
					<li><a href="store/listStore" target="select">收藏</a>
					</li>
					<li><a href="space/myArtical/MyArtical.jsp" target="select">我的文章</a> <!-- 添加 -->
					</li>
				</ul>
				<div class="top-right-pos">
					<img src='images/new.gif' border="0" />
					
				</div>
			</div>

			<div class="con-pos-aticle">
				<a href="artical/artical_findMyArtical?status=3" target="select">已发表</a><br />
				<a href="artical/artical_findMyArtical?status=1" target="select">审核中</a><br />
				<a href="artical/artical_findMyArtical?status=2" target="select">未通过</a>
			</div>
		</div>
		<div class="clear"></div>
		<div class="ma-center">
			<div class="ma-center-left">
				<div class="ma-center-left_top">
					<div class="ma-center-left_top_img">
						<a href="javacript:void(0)"><img
							src="images/body_right_01.gif" width="70px" height="90px">
							<!--  <img src="${userExt.headPic }" width="70px" height="150px"/>-->
						</a>
					</div>
					<div class="ma-center-left_top_txt">
						<span class="text-a">你好： ${sessionScope.user_session }</span>
						<div class="clear"></div>
						<span class="text-b"><a href="space/userModPwd.jsp"
							target="select">修改密码</a>
						</span> <span class="text-b"><a href="user/findExt"
							target="select">完善资料</a>
						</span>
					</div>
				</div>
				<div class="ma-center-left_bottom">
					<ul>
						<li>
							<a href="space/apply-zb.jsp" target="select">申请主编</a>
						</li>
						<li>
							<a href="html/apply-bw.jsp" target="select">申请编委</a>
						</li>
						<li>
							<a href="html/createJournal.jsp" target="select">创建期刊</a>
						</li>
						<li>
							<a href="space/article.jsp" target="select">发表文章</a>
						</li>
						<li>
							<a href="javascript:void(0)">编辑文章管理</a>
						</li>
						<li class="ma-li-a">
							<a href="artical/checkByStatusEdit" target="select">编辑待审文章</a>
							<div class="clear"></div>
						</li>
						<li class="ma-li-a">
							<a href="artical/checkEditorLast" target="select">编辑待编文章</a>
							<div class="clear"></div>
						</li>
						<li>
							<a href="javascript:void(0)">编委文章管理</a>
						</li>
						<li class="ma-li-a">
							<a href="artical/checkByStatusCommit" target="select">编委待审文章</a>
							<div class="clear"></div>
						</li>

						<li>
							<a href="javascript:void(0)">主编文章管理</a>
						</li>
						<li class="ma-li-a">
							<a href="artical/checkByStatusChief" target="select">待审文章</a>
							<div class="clear"></div>
						</li>

						<li><a href="javascript:void(0)">期刊管理</a>
						</li>
						<li class="ma-li-a"><a
							href="space/periodical/publishPerPeriodical.jsp" target="select">发布期刊</a>
						<div class="clear"></div>
						</li>
						<li class="ma-li-a"><a
							href="periodical/periodicalUserIdStatus?value=1" target="select">我的期刊</a>
						<div class="clear"></div>
						</li>
						<li class="ma-li-a"><a
							href="perPeriodical/perPeriodicalByUserIdPPStatus?value=0"
							target="select">待审期刊</a>
						<div class="clear"></div>
						</li>
						<li class="ma-li-a"><a
							href="periodical/periodicalUserIdStatus?value=2" target="select">其他</a>
						<div class="clear"></div>
						</li>

						<li><a href="javascript:void(0)">评论管理</a>
						</li>
						<li class="ma-li-a"><a href="admin/findByEditorChief"
							target="select">查看评论</a>
						<div class="clear"></div>
						</li>

						<li><a href="javascript:void(0)">编辑管理</a>
						</li>
						<li class="ma-li-a"><a
							href="space/getAllEditorByChiefId.action" target="select">所有编辑</a>
						<div class="clear"></div>
						</li>
						<li class="ma-li-a"><a
							href="space/editorManage/addEditor.jsp" target="select">添加编辑</a>
						<div class="clear"></div>
						</li>

						<li><a href="javascript:void(0)">编委管理</a>
						</li>
						<li class="ma-li-a"><a
							href="space/getAllEditorCommitByChiefId.action" target="select">所有编委</a>
						<div class="clear"></div>
						</li>
						<li class="ma-li-a"><a
							href="space/editorCommitManage/addEditorCommit.jsp"
							target="select">添加编委</a>
						<div class="clear"></div>
						</li>
						<li class="ma-li-a"><a
							href="space/getAllEditorCommitByState.action?state=0"
							target="select">审核编委</a>
						<div class="clear"></div>
						</li>
					</ul>
				</div>
				<!-- 左边菜单部分结束-->
			</div>
			<div class="ma-center-right">
				<iframe name="select" width="auto" scrolling="no" height="auto"
					frameborder="0" src="html/createJournal.jsp" id="right"
					onload="javascript:{dyniframesize('right');}"></iframe>
			</div>
		</div>
	</div>
	<div style="clear:both"></div>
	<jsp:include page="footer.jsp" />
</body>
</html>
